import{ createRouter,createWebHistory,RouteRecordRaw } from 'vue-router'

const routes:Array<RouteRecordRaw> = [
    {
        path:"/",
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:"/Demo",
        component:()=>import('../components/Demo.vue')
    },
    {
        path:"/ForDemo",
        component:()=>import('../components/ForDemo.vue')
    },
    {
        path:"/ifSemo",
        component:()=>import('../components/ifSemo.vue')
    },
    {
        path:"/ShowStudentInfo",
        component:()=>import('../components/ShowStudentInfo.vue')
    }
]
//ShowStudentInfo
//createRouter创建路由实例
//createWebHashHistory用于创建历史记录的函数
const route = createRouter({
    history:createWebHashHistory(),
    routes
})

//到处路由实例
export default route